package restful;

public class RestfulProtocolOverriden extends RestfulProtocol {

	@Override
	protected RestfulMethod newRestfulMethod(String verb, RestfulTopic topic, RestfulResource resource, String pattern) {
		RestfulMethod method = findMethod(verb, topic.getName(), resource.getName(), pattern);
		if (method == null) return super.newRestfulMethod(verb, topic, resource, pattern);
		return method;
	}

	@Override
	protected void onAlreadyDefined(RestfulMethod method) {}

}
